<template>
<view class="container">
		<view class="type-box">
				<noData style="margin: 0 auto;" v-if="dongList.length < 1" :ndText="'暂无数据'"></noData>
			<view v-else class="content_model" v-for="(item,index) in dongList" :key="index"
				@click="$helper.to('/pages/views/findDetail/findDetail')">
				<image :src="item.url" mode="" class="model_img"></image>
				<image class="model_time" src="/static/image/find/play.png" mode=""></image>
				<view class="model_bz">
					{{item.title}}
				</view>
				<view class="model_info">
					<view class="model_info-left">
						<view class="info_name">{{item.create_time}}</view>
					</view>
					<view class="model_info-right">
						<!-- <image class="love-img" src="/static/image/find/love_active.png" mode=""></image> -->
						<image  class="love-img" :src="item.is_like == false ? '/static/image/find/love.png' : '/static/image/find/love_active.png'" mode=""></image>
						<view class="">{{item.like}}</view>
					</view>
				</view>
			</view>
			
		</view>
		<image @click="$helper.to('/pages/views/findDetail/release/release')" class="relase-img" src="/static/image/find/relase.png" mode=""></image>
	</view>
</template>

<script>
		import noData from '@/components/ben-components/notData/notData.vue'
	export default {
		components: {
			noData
		},
		data() {
			return {
				dongList:[],
			}
		},
		onLoad() {
			this.$http.getActiceDong({user_id:this.userId,dynamic_type:''}).then(res => {
				if (res.code == '1') {
					this.dongList= res.data.data;
					
				}		
			})
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.relase-img {
		width: 100rpx;
		height: 100rpx;
		position: fixed;
		right: 10rpx;
		top: 60%;
		border-radius: 50%;
	}

	.container {
		padding: 30rpx 10rpx 30rpx 30rpx;
	}

	.type-box {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	.content_model {
		position: relative;
		height: 420rpx;
		margin-right: 20rpx;
		margin-bottom: 20rpx;
	}

	.model_img {
		width: 335rpx;
		height: 420rpx;
		border-top-right-radius: 16rpx;
		border-bottom-left-radius: 16rpx;
	}

	.model_time {
		position: absolute;
		width: 36rpx;
		height: 36rpx;
		right: 20rpx;
		top: 20rpx;
		border-radius: 50%;
	}

	.model_bz {
		position: absolute;
		bottom: 56rpx;
		left: 12rpx;
		font-size: 32rpx;
		color: #FFFFFF;
		width: 296rpx;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.model_info {
		width: 90%;
		display: flex;
		position: absolute;
		bottom: 16rpx;
		left: 12rpx;
		font-weight: 500;
		justify-content: space-between;

		.model_info-left {
			display: flex;
			align-items: center;

			.info_name {
				width: 96rpx;
				font-size: 24rpx;
				color: #fff;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
			}

			.vipimg {
				width: 50rpx;
				height: 50rpx;
				border-radius: 50%;
				margin-right: 8rpx;
			}
		}

		.model_info-right {
			display: flex;
			font-weight: 400;
			font-size: 24rpx;
			color: #FFFFFF;
			align-items: center;

			.love-img {
				width: 24rpx;
				height: 22rpx;
				margin-right: 10rpx;
			}
		}
	}
</style>
